﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Janus.Windows.EditControls;
using Janus.Windows.GridEX;
using Janus.Windows.UI;
using Janus.Windows.UI.CommandBars;

namespace Company.Portal.Win
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
           RelatedObject relatedObject=new RelatedObject();
            relatedObject.Age = 20;
            relatedObject.ID = Guid.NewGuid().ToString();
            relatedObject.Name = "Ali";
            TestObject testObject=new TestObject();
            testObject.Number = 1;
            testObject.RelatedObject = relatedObject;
            RelatedObject relatedObject2=new RelatedObject();
            relatedObject2.Age = 5;
            relatedObject2.ID = Guid.NewGuid().ToString();
            relatedObject2.Name = "ss";
            TestObject testObject2=new TestObject();
            testObject2.Number = 2;
            testObject2.RelatedObject = relatedObject2;
            var items = new List<object>();
            items.Add(testObject);
            items.Add(testObject2);

            businessObjectListControl1.AddDataToGrid(items);
        }
    }
}
